﻿using System;

namespace smp.ButterflyCakes.Models.Data
{
    public class OrderSummaryListItem
    {
        public Guid Id { get; set; }

        public DateTime DueDate { get; set; }

        public string Title { get; set; }

        public string SummaryDescription { get; set; }

        public string ContactTitle { get; set; }

        public string ContactFirstName { get; set; }

        public string ContactLastName { get; set; }

        public Status Status { get; set; }

        public string ContactName
        {
            get { return ContactTitle + " " + ContactFirstName + " " + ContactLastName; }
        }

        public string StatusClassName
        {
            get
            {
                switch (Status)
                {
                    case Status.New:
                    case Status.Enquiry:
                    case Status.Building:
                    case Status.Quoted:
                    case Status.Accepted:
                        return "info";
                    case Status.DepositPaid:
                    case Status.PaidInFull:
                    case Status.Delivered:
                        return "success";
                    case Status.Cancelled:
                        return "error";
                    default:
                        return "";
                }
            }
        }
    }
}
